package com.qixiucoding.controller;

import com.qixiucoding.MImplement.MAmy;
import com.qixiucoding.context.AppContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author longhj
 * @Description TODO
 * @Date 2021/10/05 星期二 0:34
 */
@RestController
public class MYController {


    @RequestMapping("/")
    public String test() {
        MAmy mAmy = AppContext.getBean(MAmy.class);
        System.out.println(mAmy);
        return mAmy.toString();
    }
}
